home *** CD-ROM | disk | FTP | other *** search
/ Champak 119 / (Vol 119) Nov 09 2010.iso / Games / snack_attack.swf / scripts / DefineButton2_336 / BUTTONCONDACTION on(keyPress Right).as < prev   
Text File  |  2010-11-09  |  569b  |  23 lines

  1. on(keyPress "<Right>"){
  2.    temptar = eval("/:currtar");
  3.    if(eval("/:currtar") == eval("/:currplace"))
  4.    {
  5.       set("/:currtar",eval("/:currtar") + "1");
  6.    }
  7.    else if(eval("/:currtar") < eval("/:currplace"))
  8.    {
  9.       temp = eval("/:currtar");
  10.       set("/:currtar",eval("/:currplace"));
  11.       set("/:currplace",temp);
  12.    }
  13.    if("3" < eval("/:currtar"))
  14.    {
  15.       set("/:currtar","3");
  16.    }
  17.    set("/:tarx",eval("/:tar" add eval("/:currtar")));
  18.    if(temptar != eval("/:currtar"))
  19.    {
  20.       set("/:force",eval("/:force") - "12");
  21.    }
  22. }
  23.